import Vue from 'vue'
import {
  Button,
  FormModel,
  Input,
  Layout,
  Menu,
  Select,
  Cascader,
  Table,
  Popconfirm,
  ConfigProvider,
  Tabs,
  Checkbox,
  DatePicker,
  Upload,
  Modal,
  Tree,
  TreeSelect,
  Timeline,
  Radio
} from 'ant-design-vue'
// 国际化
Vue.component(ConfigProvider.name, ConfigProvider)
// 表单元素
Vue.component(Button.name, Button)
Vue.component(FormModel.name, FormModel)
Vue.component(FormModel.Item.name, FormModel.Item)
Vue.component(Input.name, Input)
Vue.component(Input.Password.name, Input.Password)
Vue.component(Select.name, Select)
Vue.component(Select.Option.name, Select.Option)
Vue.component(Select.OptGroup.name, Select.OptGroup)
Vue.component(Cascader.name, Cascader)
Vue.component(Table.name, Table)
Vue.component(Popconfirm.name, Popconfirm)
Vue.component(Tabs.name, Tabs)
Vue.component(Tabs.TabPane.name, Tabs.TabPane)
Vue.component(Checkbox.name, Checkbox)
Vue.component(Checkbox.Group.name, Checkbox.Group)
Vue.component(DatePicker.name, DatePicker)
Vue.component(DatePicker.RangePicker.name, DatePicker.RangePicker)
Vue.component(Upload.name, Upload)
Vue.component(Modal.name, Modal)
Vue.component(Tree.name, Tree)
Vue.component(TreeSelect.name, TreeSelect)
Vue.component(Radio.name, Radio)
Vue.component(Radio.Group.name, Radio.Group)
Vue.use(Modal)
// 布局
Vue.component(Layout.name, Layout)
Vue.component(Layout.Content.name, Layout.Content)
Vue.component(Layout.Sider.name, Layout.Sider)
Vue.component(Layout.Header.name, Layout.Header)
// 菜单
Vue.component(Menu.name, Menu)
Vue.component(Menu.SubMenu.name, Menu.SubMenu)
Vue.component(Menu.Item.name, Menu.Item)
// 小组件
Vue.component(Timeline.name, Timeline)
Vue.component(Timeline.Item.name, Timeline.Item)
